package yh.design.factorysimple.impl;

import yh.design.common.res.APIResult;
import yh.design.factorysimple.AbstractPayment;

import java.math.BigDecimal;

/**
 * 微信支付
 * @author: zyh
 * @date: 2025/4/12 22:52
 **/

public class WechatPayment  extends AbstractPayment {



    //1.微信支付逻辑
  public   APIResult pay(BigDecimal amount, String userId, String payCode){

        //1.获取对接配置信息
      System.out.println("获取对接配置信息");
        //2.调用微信接口扣款
      System.out.println("调用微信接口扣款");
        //3.记录消费账单信息记录
      System.out.println("记录消费账单信息记录");
        return APIResult.success();
    }
}
